/********************************************************************
	file name:	hy_script_base.h
	created:	2012/03/16 21:13
	author:		supercaco@sina.com
	purpose:	script interface base 
*********************************************************************/
#ifndef _HY_SCRIPT_BASE_H_
#define _HY_SCRIPT_BASE_H_

class hy_script_base
{
public:
	hy_script_base(){}
	~hy_script_base(){}

	virtual hy_err_t init(){}
	virtual void	 unit(){}
	virtual hy_err_t reload(){}
	virtual void	 run(){}

	virtual hy_err_t checkin(const char* funcname,const char* scriptfuncname)
	{
		return hy_error;
	}

	void _run()
	{
		run();
	}
};

#endif  //_HY_SCRIPT_BASE_H_
